package com.study.extendenum;

public enum ExtendedOperation implements IOperation {
	EXP("^"){

		@Override
		public double apply(double x, double y) {
			return Math.pow(x, y);
		}
		
	},
	REMAINDER("%"){

		@Override
		public double apply(double x, double y) {
			return x % y;
		}
		
	};
	
	private final String symbol;
	ExtendedOperation(String symbol){this.symbol = symbol;}
	
	@Override
	public String toString() {
		return symbol;
	}
}
